﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddTaoTi.aspx.cs" Inherits="Admin1_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/Common.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .m_t {
            width: 100%;
            height: 7%;
            border-top: 2px dotted #ddd;
            line-height: 25px;
            color: #369aff;
            font-size: 20px;
            font-weight: bold;
            padding-top: 1%;
            padding-left: 2%;
        }

        .m_tt {
            width: 100%;
            height: 3%;
            border-top: 2px dotted #ddd;
            line-height: 25px;
            color: #369aff;
            font-size: 20px;
            font-weight: bold;
            padding-top: 1%;
            padding-left: 2%;
        }

        .m_t_h {
            width: 50%;
            height: 30px;
            line-height: 25px;
            float: left;
        }

        #notice {
            width: 100%;
            height: 25px;
            text-align: center;
            color: #1e7ace;
            font-weight: bold;
            line-height: 25px;
        }

        .view {
            width: 100%;
            height: auto;
        }

        .view_1 {
            width: 100%;
            height: auto;
        }

        .baocun {
            width: 100%;
            height: 52px;
            text-align: center;
            border-top: 2px solid #ddd;
            padding-top: 5px;
        }
    </style>
    <script type="text/javascript" src="../JS/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../layer/layer.js"></script>

</head>
<body style='overflow: SCROLL; overflow-x: HIDDEN'>
    <form id="form1" runat="server">
        <div class="m_box">
            <div class="m_head" style="font-size: large; font-weight: bold">
                试卷制定 
          <asp:Label ID="Label23" runat="server" Text="（总分"></asp:Label>
                <asp:Label ID="Label21" runat="server" Font-Bold="True" ForeColor="#FF3300"
                    Text="Label"></asp:Label>
                <asp:Label ID="Label22" runat="server" Text="分）"></asp:Label>
                &nbsp;
            </div>
            <br />
            <div class="m_t">
                <div class="m_t_h">
                    考试科目：<asp:DropDownList ID="ddlCourse" CssClass="DDL" runat="server">
                    </asp:DropDownList>
                </div>
                <div class="m_t_h">
                    试卷名称：<asp:TextBox ID="txtPaperName" runat="server" CssClass="DDL"></asp:TextBox>*必填
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                        ErrorMessage="*必填" ControlToValidate="txtPaperName"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="m_t">
                <div class="m_t_h">
                    考试时间：<asp:DropDownList CssClass="DDL" ID="DropDownList1"
                        runat="server">
                        <asp:ListItem Value="30">30分钟</asp:ListItem>
                        <asp:ListItem Value="60">60分钟</asp:ListItem>
                        <asp:ListItem Value="90">90分钟</asp:ListItem>
                        <asp:ListItem Value="120">120分钟</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="m_t_h">
                    试卷状态：<asp:DropDownList CssClass="DDL" ID="DropDownList2"
                        runat="server">
                        <asp:ListItem Value="1">可用</asp:ListItem>
                        <asp:ListItem Value="0">不可用</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>

            <div class="m_tt">单选题</div>
            <div class="m_t">
                <div class="m_t_h">
                    题目数目：<asp:DropDownList CssClass="DDL" ID="SingleNum"
                        runat="server" AutoPostBack="True">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="m_t_h">
                    每题分数：<asp:DropDownList ID="SingleFen" CssClass="DDL" runat="server"
                        AutoPostBack="True">

                        <asp:ListItem Value="1">1分</asp:ListItem>
                        <asp:ListItem Value="2">2分</asp:ListItem>
                        <asp:ListItem Value="3">3分</asp:ListItem>
                        <asp:ListItem Value="4">4分</asp:ListItem>
                        <asp:ListItem Value="5">5分</asp:ListItem>
                        <asp:ListItem Value="6">6分</asp:ListItem>
                        <asp:ListItem Value="7">7分</asp:ListItem>
                        <asp:ListItem Value="8">8分</asp:ListItem>
                        <asp:ListItem Value="9">9分</asp:ListItem>
                        <asp:ListItem Value="10">10分</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="m_tt">多选题</div>
            <div class="m_t">
                <div class="m_t_h">
                    题目数目：<asp:DropDownList CssClass="DDL" ID="MultiNum" runat="server"
                        AutoPostBack="True">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="m_t_h">
                    每题分数：<asp:DropDownList ID="MultiFen" CssClass="DDL" runat="server"
                        AutoPostBack="True">
                        <asp:ListItem Value="1">1分</asp:ListItem>
                        <asp:ListItem Value="2">2分</asp:ListItem>
                        <asp:ListItem Value="3">3分</asp:ListItem>
                        <asp:ListItem Value="4">4分</asp:ListItem>
                        <asp:ListItem Value="5">5分</asp:ListItem>
                        <asp:ListItem Value="6">6分</asp:ListItem>
                        <asp:ListItem Value="7">7分</asp:ListItem>
                        <asp:ListItem Value="8">8分</asp:ListItem>
                        <asp:ListItem Value="9">9分</asp:ListItem>
                        <asp:ListItem Value="10">10分</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="m_tt">判断题</div>
            <div class="m_t">
                <div class="m_t_h">
                    题目数目：<asp:DropDownList ID="JudgeNum" runat="server" CssClass="DDL"
                        AutoPostBack="True">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="m_t_h">
                    每题分数：<asp:DropDownList
                        ID="JudgeFen" CssClass="DDL" runat="server"
                        AutoPostBack="True">
                        <asp:ListItem Value="1">1分</asp:ListItem>
                        <asp:ListItem Value="2">2分</asp:ListItem>
                        <asp:ListItem Value="3">3分</asp:ListItem>
                        <asp:ListItem Value="4">4分</asp:ListItem>
                        <asp:ListItem Value="5">5分</asp:ListItem>
                        <asp:ListItem Value="6">6分</asp:ListItem>
                        <asp:ListItem Value="7">7分</asp:ListItem>
                        <asp:ListItem Value="8">8分</asp:ListItem>
                        <asp:ListItem Value="9">9分</asp:ListItem>
                        <asp:ListItem Value="10">10分</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="m_tt">问答题</div>
            <div class="m_t">
                <div class="m_t_h">
                    题目数目：<asp:DropDownList ID="AskNum" runat="server" CssClass="DDL"
                        AutoPostBack="True">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="m_t_h">
                    每题分数：<asp:DropDownList
                        ID="AskFen" CssClass="DDL" runat="server"
                        AutoPostBack="True">
                        <asp:ListItem Value="1">1分</asp:ListItem>
                        <asp:ListItem Value="2">2分</asp:ListItem>
                        <asp:ListItem Value="3">3分</asp:ListItem>
                        <asp:ListItem Value="4">4分</asp:ListItem>
                        <asp:ListItem Value="5">5分</asp:ListItem>
                        <asp:ListItem Value="6">6分</asp:ListItem>
                        <asp:ListItem Value="7">7分</asp:ListItem>
                        <asp:ListItem Value="8">8分</asp:ListItem>
                        <asp:ListItem Value="9">9分</asp:ListItem>
                        <asp:ListItem Value="10">10分</asp:ListItem>
                        <asp:ListItem Value="15">15分</asp:ListItem>
                        <asp:ListItem Value="20">20分</asp:ListItem>
                        <asp:ListItem Value="25">25分</asp:ListItem>
                        <asp:ListItem Value="30">30分</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="baocun">
                <asp:Button ID="ImageButton1" runat="server" Text="预览" Height="50px" Width="146px" OnClick="ImageButton1_Click1" />

                <%-- <asp:ImageButton ID="ImageButton1" runat="server"
                    OnClick="ImageButton1_Click" ImageUrl="~/image/Submit.GIF" Height="50px" />--%>
            </div>
            <div id="notice">
                <asp:Label ID="Label25" runat="server" Text="注意：添加试卷总分不能超过100分" Font-Bold="True"
                    Font-Size="25px" ForeColor="#1E7ACE"></asp:Label>
            </div>
            <div class="view">
                <asp:GridView ID="GridView1" runat="server" Width="100%"
                    AutoGenerateColumns="False"
                    HorizontalAlign="Center" EnableModelValidation="True">
                    <Columns>
                        <asp:TemplateField HeaderText="一、选择题">
                            <ItemTemplate>
                                <table id="Table2" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                    <tr>
                                        <td colspan="3">
                                            <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                            </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="35%">
                                            <asp:RadioButton ID="RadioButton1" runat="server" Text='<%# Eval("AnswerA") %>' GroupName="Sl"></asp:RadioButton></td>
                                        <td width="35%">
                                            <asp:RadioButton ID="RadioButton2" runat="server" Text='<%# Eval("AnswerB") %>' GroupName="Sl"></asp:RadioButton></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td width="35%">
                                            <asp:RadioButton ID="RadioButton3" runat="server" Text='<%# Eval("AnswerC") %>' GroupName="Sl"></asp:RadioButton></td>
                                        <td width="35%">
                                            <asp:RadioButton ID="RadioButton4" runat="server" Text='<%# Eval("AnswerD") %>' GroupName="Sl"></asp:RadioButton></td>
                                        <td></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                            <HeaderStyle Height="20px" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                </asp:GridView>
            </div>
            <div class="clear"></div>

            <div class="view">
                <asp:GridView ID="GridView2" runat="server" Width="100%"
                    AutoGenerateColumns="False" HorizontalAlign="Center"
                    EnableModelValidation="True">
                    <Columns>
                        <asp:TemplateField HeaderText="二、多选题">
                            <ItemTemplate>
                                <table id="Table3" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                    <tr>
                                        <td colspan="3">
                                            <asp:Label ID="Label9" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label10" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                            </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 22px" width="35%">
                                            <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval("AnswerA") %>'></asp:CheckBox></td>
                                        <td style="height: 22px" width="35%">
                                            <asp:CheckBox ID="CheckBox2" runat="server" Text='<%# Eval("AnswerB") %>'></asp:CheckBox></td>
                                        <td style="height: 22px"></td>
                                    </tr>
                                    <tr>
                                        <td width="35%">
                                            <asp:CheckBox ID="CheckBox3" runat="server" Text='<%# Eval("AnswerC") %>'></asp:CheckBox></td>
                                        <td width="350%">
                                            <asp:CheckBox ID="CheckBox4" runat="server" Text='<%# Eval("AnswerD") %>'></asp:CheckBox></td>
                                        <td></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                </asp:GridView>
            </div>
            <div class="clear"></div>
            <div class="view_1">
                <asp:GridView ID="GridView3" runat="server" Width="100%"
                    AutoGenerateColumns="False" HorizontalAlign="Center"
                    EnableModelValidation="True">
                    <Columns>
                        <asp:TemplateField HeaderText="三、判断题">
                            <ItemTemplate>
                                <table id="Table4" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                    <tr>
                                        <td width="85%">
                                            <asp:Label ID="Label19" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label20" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                            </asp:Label>
                                        </td>
                                        <td width="15%">
                                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" name="RadioButtonList1"
                                                RepeatDirection="Horizontal">
                                                <asp:ListItem Value="true">正确</asp:ListItem>
                                                <asp:ListItem Value="false">错误</asp:ListItem>
                                            </asp:RadioButtonList></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                </asp:GridView>
            </div>
            <div class="clear"></div>
            <div class="view_1">
                <asp:GridView ID="GridView4" runat="server" Width="100%"
                    AutoGenerateColumns="False" HorizontalAlign="Center"
                    EnableModelValidation="True">
                    <Columns>
                        <asp:TemplateField HeaderText="四、问答题">
                            <ItemTemplate>
                                <table id="Table4" cellspacing="1" cellpadding="1" width="100%" align="center" border="0">
                                    <tr>
                                        <td width="85%">
                                            <asp:Label ID="Label33" runat="server" Text='<%# Container.DataItemIndex+1 %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label34" runat="server" Text='<%# Eval("Title","、{0}") %>'>
                                            </asp:Label>
                                            <asp:Label ID="Label35" runat="server" Text='<%# Eval("ID") %>' Visible="False">
                                            </asp:Label>
                                        </td>

                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle Font-Size="12pt" HorizontalAlign="Left" />
                </asp:GridView>
            </div>
            <div class="clear"></div>
            <div class="baocun">
                <asp:ImageButton ID="ImageButton2" runat="server"
                    OnClick="ImageButton2_Click" ImageUrl="~/image/Submit.GIF" />
            </div>
        </div>
    </form>
</body>
</html>
